﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using NCS.IConnect.ApplicationContexts;

namespace NCS.OCP.SharePointComponent.Newsfeed.SPObjNewsfeed
{
    public partial class SPObjNewsfeedUserControl : UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.IsPostBack == false)
            {
                if (ApplicationContext.Current.GetKeyValue("userId") != null)
                {
                    HiddenFieldStaffId.Value = ApplicationContext.Current.GetKeyValue("userId").ToString();
                }
            }
        }
    }
}
